package behavioralPattern.state.example01;

public class ConcreteState_B implements State{
    @Override
    public void handle(Context context) {
        System.out.println("进入状态模式B");
        context.setCurrentState(this);
    }

    @Override
    public String toString() {
        return "当前状态：B";
    }
}
